{extend name="index@common/base"/} 
{block name="style"}
 <link rel="stylesheet" href="__CSS__/warning/history.css" media="all">
{/block} 
{block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-9">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('warning/history/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<select name="enterpriseId">
						<option value="">单位</option>
						{volist name="enterpriseList" id="item"}
						<option value="{$key}">{$item}</option>
						{/volist}
					</select>
					<select name="riskDegree">
						<option value="">预警等级</option>
						{volist name="riskDegree" id="item"}
						<option value="{$key}">{$item}</option>
						{/volist}
					</select>
					<div class="date-duration">
						<div class="layui-input-inline">
							<input type="text" name="start" id="start" autocomplete="off" class="search-input" placeholder="反馈时间">
						</div>
						<div class="layui-input-inline">
							<span>--</span>
						</div>
						<div class="layui-input-inline">
							<input type="text" name="end" id="end" autocomplete="off" class="search-input" placeholder="反馈时间">
						</div>
					</div>
				</form>	
			</div>
			<div class="tool col-1">
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="history" lay-filter="history" data-url="{:url('warning/history/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__JS__/warning/history.js"></script>

<script type="text/html" id="enterpriseTemplet">
	{{# if (d.enterprise){ }}
		<p><b>{{d.enterprise.fullName}}</b></p>
	{{# } }}
</script>

<script type="text/html" id="degreeTemplet">
	{{# if (d.degree){ }}
		<div class="risk-degree" style="background:{{d.degree.color}}">
			{{d.degree.title}}
		<div>
	{{# } }}
</script>
{/block}